const path = require('path');
function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    baseUrl: process.env.NODE_ENV === "production" ? "./" : "/",
    devServer: {
        open: true
    },
    lintOnSave: true,
    chainWebpack: (config) => {
        config.entry.app = ["babel-polyfill", resolve('src/main.js')],
            config.resolve.alias
                .set('@', resolve('src'))
                .set('assets', resolve('src/assets'))
    },
    configureWebpack: (config) => {
    }
}